package org.ddevil.data.util;

import org.ddevil.data.Filter;

/**
 * Filter that uses <code>==</code> to compare objects against a test.
 * @author Rich O'Connell
 */
public class DoubleEqualsFilter implements Filter<Object> {

	private Object compareTo;

	/**
	 * @param compareTo
	 */
	public DoubleEqualsFilter(Object compareTo) {
		this.compareTo = compareTo;
	}

	/**
	 * {@inheritDoc}
	 */
	public boolean accept(Object arg) {
		return arg == compareTo;
	}

}
